/*
* 公共的返回
*   Object.assign(ret , configVar.readfile);
    deferred.reject(ret);
* */


const code = {
    success:{code:'1',message:"成功"}, //成功
    param:{code:'-3',message:"参数错误"},
    db:{code:"-2",message:"服务器错误"},
    cache:{code:"-4",message:"缓存失败"},
    token:{code:"-5",message:"token失效"},
    forbid:{code:"-6",message:"禁止访问"},
    login:{code:"-7",message:"需要登录"}
}

module.exports = code;